<?php
class UserUpdateCitizenshipAction extends SzAbstractAction
{
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT
    );

    /**
     *
     * 更新玩家城市
     *
     * @param $userId
     * @param $citizenshipId
     * @return SzResponse
     */
    public function execute($userId, $citizenshipId)
    {
        UserService::get()->updateCitizenship($userId, $citizenshipId);
        return $this->buildResponse(array(
            0 => 0
        ));
    }
}